﻿using AutoMapper;
using BCDto.Common.Banner;
using BCEntity.Common.Banner;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Common.Banner
{
    public class BannerProfile : Profile
    {
        public BannerProfile()
        {
            //横幅标记码
            CreateMap<BannerTagcodeDto, BannerTagcodeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<BannerTagcodeRequestDto, BannerTagcodeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<BannerTagcodeEntity, BannerTagcodeDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            //横幅
            CreateMap<BannerDto, BannerEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<BannerRequestDto, BannerEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<BannerEntity, BannerDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
